<template>
  <div class="wrap">
    <div class="menu">
      <div class="item" v-for="(item,index) in navData" :key="index">
          <router-link :to="item.path">{{item.title}}</router-link>
      </div>
    </div>
    <div class="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import {onMounted} from 'vue'
import {navData} from '@/untils/nav'
export default {
  name: 'App',
  components: {},
  setup(){
    onMounted(()=>{
      console.log(navData)
    })
    return{
      navData
    }
  }
}
</script>

<style scoped>
.wrap{
  display: flex;
  flex-flow: row;
}
.menu{
  margin: 40px;
  display: flex;
  flex-direction: column;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
